import http from '../request.js'

// 获取第三方应用信息列表
let getThirdUse = (url, params) => {
    return http.req(
        'get',
        url = 'app/appThird/getList',
        params,
        null
    )
}

// 获取第三方应用信息详情
let thirdGetInfo = (url, appId) => {
    return http.req(
        'get',
        url = 'app/appThird/getInfo?appId='+appId,
        null,
        null
    )
}

// 添加第三方应用信息
let thirdAdd = (url, data) => {
    return http.req(
        'post',
        url = 'app/appThird/add',
        null,
        data
    )
}

// 删除第三方应用信息
let thirdRemove = (url, appId) => {
    return http.req(
        'delete',
        url = 'app/appThird/remove?appId=' + appId,
        null,
        null
    )
}

// 编辑第三方应用信息
let thirdEdit = (url, data) => {
    return http.req(
        'put',
        url = 'app/appThird/edit',
        null,
        data
    )
}

export default {
    getThirdUse,
    thirdGetInfo,
    thirdAdd,
    thirdRemove,
    thirdEdit
}